package com.xiaoshuidi.cloud.module.contract.controller.admin.fee.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 管理后台 - 基本费项创建 Request VO
 */
@Schema(description = "管理后台 - 基本费项创建 Request VO")
@Data
@ToString(callSuper = true)
public class FeeTypesCreateReqVO {

    /**
     * 费用id
     */
    @Schema(description = "费用id", required = true)
    private Long id;

    /**
     * 费用名称
     */
    @Schema(description = "费用名称", required = true)
    @NotNull(message = "费用名称不能为空")
    @Size(min = 1, max = 10, message = "费用名称长度必须在1~10个字符之间")
    private String feeName;

    @NotNull(message = "周期性费用")
    private Boolean cycle = Boolean.FALSE;

    @NotNull(message = "一次性费用")
    private Boolean once = Boolean.FALSE;

    @NotNull(message = "押金费用")
    private Boolean deposit = Boolean.FALSE;

}
